﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace WebHoiChoMuaBan.Models
{
    public class RuleViolation
    {
        public string ErrorMessage
        { 
            get { return this.errorMessage;}
        }

        public string PropertyName 
        {
            get { return this.propertyName; }
        }

        public RuleViolation(string errorMessage, string propertyName)
        {
            this.errorMessage= errorMessage;
            this.propertyName = propertyName;
        }

        private string errorMessage;
        private string propertyName;
    }
}